#pragma once
#include"HashTable.h"
namespace bit
{
	template<class K, class V, class Hash=HashFunc<K>>
	class unordered_map
	{
		struct MapKeyOfT
		{
			const K& operator()(const pair<K, V>& kv)
			{
				return kv.first;
			}
		};
	public:
		typedef typename hash_bucket::HashTable<K,pair<const K,V>,MapKeyOfT,Hash>::iterator iterator
			iteraotr begin()
		{
			return _ht.begin();
		}


	private:
		hash_bucket::HashTable<K, pair<const K, V>, MapKeyOfT, Hash> _ht;
	};
}